// components/DefineText/index.js

const { getDict } = require('../../utils/dict');

Component({

  /**
   * 组件的属性列表
   */
  properties: {
    type: { type: String, value: '11' },
    code: { type: String, value: '' }
  },

  /**
   * 组件的初始数据
   */
  data: {
    value: ''
  },
  lifetimes: {
    async attached() {
      const dictList = await getDict( this.properties.type );
      // const dict = 
    }
  },
  /**
   * 组件的方法列表
   */
  methods: {

  }
})